/**
 * Created by Freeman on 2017/12/27.
 */
import React from 'react'
import {View} from 'react-native'
import PropTypes from 'prop-types'
import variables from '../variables'

const WingBlank = ({size, style, children}) => {

  const margin = variables[`h_spacing_${size}`];
  return (
    <View style={[{marginLeft: margin, marginRight: margin}, style]}>
      {children}
    </View>
  )
}

WingBlank.propTypes = {
  size: PropTypes.oneOf(['sm', 'md', 'lg']),
  style: PropTypes.object,
};

WingBlank.defaultProps = {
  size: 'lg',
};

export default WingBlank
